<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
{literal}
<style type="text/css">
<!--
body {
	margin-left: 3px;
	margin-top: 0px;
	margin-right: 3px;
	margin-bottom: 0px;
}
.STYLE1 {
	color: #e1e2e3;
	font-size: 12px;
}
.STYLE1 a{
color: white;
}
.STYLE6 {color: #000000; font-size: 12; }
.STYLE10 {color: #000000; font-size: 12px; }
.STYLE19 {
	color: #344b50;
	font-size: 12px;
}
.STYLE21 {
	font-size: 12px;
	color: #3b6375;
}
.STYLE22 {
	font-size: 12px;
	color: #295568;
}
-->
</style>
{/literal}
</head>

<body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="24" bgcolor="#353c44"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="6%" height="19" valign="bottom"><div align="center"><img src="{$ui_site}images/tb.gif" width="14" height="14" /></div></td>
                <td width="10%" valign="bottom"><span class="STYLE1"> 路书列表</span></td>
				<td width="84%" valign="bottom"><span class="STYLE1"> 点击【选择动作】：添加途径地、兴趣点、图片等信息</span></td>
              </tr>
            </table></td>
            <td style="display:none"><div align="right"><span class="STYLE1">
              <input type="checkbox" name="checkbox11" id="checkbox11" />
              全选      &nbsp;&nbsp;<a href="{url('roadbook/add')}"><img src="{$ui_site}images/add.gif" width="10" height="10" /> 添加   &nbsp;</a> <img src="{$ui_site}images/del.gif" width="10" height="10" /> 删除    &nbsp;&nbsp;</span><span class="STYLE1"> &nbsp;</span></div></td>
			  
			  <td><div align="right"><span class="STYLE1">
              <a href="{url('roadbook/add')}"><img src="{$ui_site}images/add.gif" width="10" height="10" /> 添加   &nbsp;</a> </span><span class="STYLE1"> &nbsp;</span></div></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#a8c7ce">
      <tr>
        <td style="display:none" width="4%" height="20" bgcolor="d3eaef" class="STYLE10"><div align="center">
          <input type="checkbox" name="checkbox" id="checkbox" />
        </div></td>
        <td width="5%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">路书ID</span></div></td>
        <td width="5%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">名称</span></div></td>
        <td width="14%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">简介</span></div></td>
        <td width="5%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">出发地</span></div></td>
        <td width="5%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">目的地</span></div></td>
        <td width="5%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">路书行程</span></div></td>
		
        <td width="5%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">路书里程</span></div></td>
        <td width="16%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">小贴士</span></div></td>
        <td width="7%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">路书标签</span></div></td>
        <td width="5%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">作者</span></div></td>
        <td width="5%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">创建时间</span></div></td>
        <td width="5%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">修改时间</span></div></td>
        <td width="7%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">操作</span></div></td>
      </tr>
	  
	  {foreach from=$roadbook item=val key=k}
      <tr id="tr_roadbook_{$val['roadbook_id']}">
        <td style="display:none" height="20" bgcolor="#FFFFFF"><div align="center">
          <input type="checkbox" name="checkbox2" id="checkbox2" value="{$val['roadbook_id']}" />
        </div></td>
        <td height="20" bgcolor="#FFFFFF" class="STYLE6"><div align="center"><span class="STYLE19">{$val['roadbook_id']}</span></div></td>
        <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center">{cutstr($val['roadbook_name'],10)}</div></td>
        <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center" style="{$val['introduction']}">{cutstr($val['introduction'],18)}</div></td>
        <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center"><a target="_blank" href="{url('way/modify')}&way_id={$val['depart']}">{$val['departname']}</a></div></td>
        <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center"><a target="_blank" href="{url('way/modify')}&way_id={$val['destination']}">{$val['destinationname']}</a></div></td>
		 <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center">{$val['journey']}</div></td>
        <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center">{$val['kilometers']}</div></td>
        <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center">{$val['suggestions']}</div></td>
        <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center">{$val['marks']}</div></td>
				 <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center">{$val['author_name']}</div></td>
				 <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center">{format_time($val['create_time'])}</div></td>
				 <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center">{format_time($val['update_time'])}</div></td>
        <td height="20" bgcolor="#FFFFFF">
		<div align="center" class="STYLE21" style="display:none;">
		<a href={assign var=foo value=['roadbook_id'=>$val['roadbook_id']]}{url('roadbook/way',$foo)} target="_blank">途径地</a> 
		|<a href={url('roadbook/point',$foo)} target="_blank">兴趣点</a> 
		|<a href={url('pic/roadbook',$foo)} target="_blank">图片</a> 
		|<a href={assign var=foo value=['roadbook_id'=>$val['roadbook_id']]}{url('roadbook/del',$foo)}>删除</a>
		 | <a href="{url('roadbook/modify',$foo)}">编辑</a>
		 </div>
		 <div align="center" class="STYLE21">
		 <script>
		 function MM_jumpMenu(targ,selObj,restore){
		  var statenum = selObj.selectedIndex;
		  var href = selObj.options[selObj.selectedIndex].value;
		  
		  if(statenum==4 || statenum ==2|| statenum ==3){
			window.open(href);
		  }else if(statenum==1 ||statenum==5){
		  window.location.href=href;
		  }
		}
		 </script>
		 {assign var=foo value=['roadbook_id'=>$val['roadbook_id']]}
		 <select name=sendto onchange="MM_jumpMenu('parent',this,0)">
		  <option>选择动作</option>
			 <option value="{url('roadbook/modify',$foo)}" ><a href="{url('roadbook/modify',$foo)}">编辑</a></option>
		  <option value="{url('roadbook/way',$foo)}"><a href={url('roadbook/way',$foo)} target="_blank">途径地</a> </option>
		  <option value="{url('roadbook/point',$foo)}"><a href={url('roadbook/point',$foo)} target="_blank">兴趣点</a> </option>
		   <option value="{url('pic/roadbook',$foo)}"><a href={url('pic/roadbook',$foo)} target="_blank">图片</a></option>
		    <option value="{url('roadbook/del',$foo)}"><a href={url('roadbook/del',$foo)}>删除</a></option>
		 </select>
		 </div>
		 </td>
      </tr>
     {/foreach}
    </table></td>
  </tr>
  <tr>
    <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="33%"><div align="left"><span class="STYLE22">&nbsp;&nbsp;&nbsp;&nbsp;共有<strong> {$count}</strong> 条记录，当前第<strong> {$page+1}</strong> 页，共 <strong>{ceil($count/$perpage)}</strong> 页</span></div></td>
        <td width="67%">
		<table width="730" border="0" align="right" cellpadding="0" cellspacing="0">
          <tr>
		  
		  {$pagecontent}
          
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>
